﻿<UserControl x:Class="RFW.Silverlight.Weather.Thermometer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="100">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="25" />
            <ColumnDefinition Width="25" />
            <ColumnDefinition Width="25" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Canvas Grid.Column="1" Grid.Row="0" SizeChanged="CanvasProgressBar_SizeChanged" Name="CanvasProgressBar">
            <ProgressBar Canvas.Left="0" Canvas.Top="0" Minimum="0" Maximum="100" Value="0" Height="25" Width="260" Name="pbData">
                <ProgressBar.RenderTransform>
                    <RotateTransform x:Name="pbRotation" Angle="-90" CenterX="130" CenterY="130" />
                </ProgressBar.RenderTransform>
            </ProgressBar>
        </Canvas>
        <Canvas Grid.Column="2" Grid.Row="0" Grid.RowSpan="2" SizeChanged="CanvasMinMax_SizeChanged" Name="CanvasMinMax">
            <Polygon Name="pbMax" Points="2,258 12,252 12,264 2,258" Stroke="Red" Fill="Red" />
            <Polygon Name="pbMin"  Points="2,258 12,252 12,264 2,258" Stroke="Yellow" Fill="Yellow" />
            <Polygon Name="pbValue" Points="2,258 12,252 12,264 2,258" Stroke="Green" Fill="Green" />
        </Canvas>
        <TextBlock Grid.Row="31" Grid.ColumnSpan="4" Text="---" Name="txtValue" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" FontWeight="Bold" />
    </Grid>
</UserControl>
